import React from 'react';
import {render} from 'react-dom';
import {Router, hashHistory} from 'react-router';
import getRoutes from './route';

const rootElement = document.getElementById('root');
const routes = getRoutes();
const history = hashHistory;


const render = render((
	<Router history={history}>
	{routes}
	{/* 如果是多页面, 其他 route 放这里*/}
	</Router>
),
	rootElement
);

